home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Telnet 2.6.1d1 4⁄26⁄94 Folder / source / config / Preferences.h < prev    next >
Text File  |  1993-10-25  |  5KB  |  188 lines

  1. #define    PREFERENCES_FILE_NAME_STR_ID    1991    // STR resource containing "NCSA Telnet
  2.                                                 //    Preferences" or translated name
  3.  
  4. // Name of each instance is the resource name.  Resource type TeRm
  5. typedef    struct {
  6.     short
  7.         version;                // Version of this structure
  8.         
  9.     RGBColor
  10.         nfcolor,                // Normal foreground RGB
  11.         nbcolor,                // Normal background RGB
  12.         bfcolor,                // Blinking foreground RGB
  13.         bbcolor,                // Blinking background RGB
  14.         reserved1,                // Reserved by JMB - NCSA
  15.         reserved2;                // Reserved by JMB - NCSA
  16.         
  17.     short
  18.         vtemulation,            // 0 = VT100, 1 = VT220 (supposedly)
  19.         vtwidth,                // Width of the terminal screen in characters
  20.         vtheight,                // Height of the terminal screen in characters
  21.         fontsize,                // Size of DisplayFont to use to display text
  22.         numbkscroll;            // Number of lines to save in scroll buffer
  23.         
  24.     Boolean
  25.         ANSIgraphics,            // Recognize ANSI color sequences
  26.         Xtermsequences,            // Recognize Xterm sequences
  27.         vtwrap,                    // Use VT wrap mode
  28.         emacsmetakey,            // Option key is EMACS meta key
  29.         emacsarrows,            // Arrow keys and mouse position are EMACS flavor
  30.         MATmappings,            // Map PageUp, PageDown, Home, End. (MAT == Mark Tamsky)
  31.         eightbit,                // Don't strip the high bit
  32.         clearsave;                // Save cleared lines
  33.         
  34.     Str63
  35.         DisplayFont;            // Font to use to display text
  36.     
  37.     Str32
  38.         AnswerBackMessage;        // Response to send when asked what terminal we are
  39.     
  40.     short
  41.         padding[100];            // So I'm generous....
  42. }    TerminalPrefs;
  43. #define    TERMINALPREFS_RESTYPE    'TeRm'
  44. #define    TERMINALPREFS_APPID        1991        // The "<Default>" terminal seed copy
  45.  
  46. // Name of each instance is the resource name.  Resource type SeSn
  47. typedef    struct {
  48.     short
  49.         version;                // Version of this structure
  50.         
  51.     short
  52.         port,                    // Port to connect to
  53.         tektype,                // -1 = inhibit, 0 = 4014, 1 = 4105
  54.         pastemethod,            // 0 = quick, 1 = block
  55.         pasteblocksize;            // Size of blocks to paste if using block mode
  56.  
  57.     unsigned long
  58.         ip_address;                // IP address of the host
  59.  
  60.     Boolean
  61.         forcesave,                //
  62.         crmap,                    // Strange Bezerkley 4.3 CR mode needed
  63.         linemode,                // Allow linemode to be used
  64.         showlowlevelerrors,        // Show low level errors (??????????????????????)
  65.         tekclear,                // Clear TEK window vs. create new one
  66.         halfdup;                // Half duplex required
  67.         
  68.     char
  69.         bksp,                    // 0 DELETE = BKSP, 1 DELETE = DELETE
  70.         ckey,
  71.         skey,
  72.         qkey;
  73.  
  74.     Str32
  75.         TerminalEmulation,        // Name of terminal emulator to use
  76.         TranslationTable;        // Name of translation table to use by default
  77.  
  78.     Str63
  79.         hostname;                // The DNS name of the host
  80.         
  81.     Boolean
  82.         authenticate,            // Kerberos authentication
  83.         encrypt,                // Encrypted session
  84.         localecho,                // Force local echo on?
  85.         reserved1;                // Reserved by JMB - NCSA
  86.         
  87.     short
  88.         padding[98];            // Disk space is cheap....
  89. }    SessionPrefs;
  90. #define    SESSIONPREFS_RESTYPE    'SeSn'
  91. #define SESSIONPREFS_APPID        1991        // The "<Default>" session seed copy
  92.  
  93. // Only one instance of this resource type.  Resource type PrEf
  94. typedef    struct    {
  95.     short
  96.         version;                // Version of this resource
  97.         
  98.     short
  99.         CursorType,                // 0 = block, 1 = underscore, 2 = vertical line
  100.         CopyTableThresh;        // Copy table threshold
  101.         
  102.     long
  103.         TimeSlice;                // Timeslice passed to WaitNextEvent
  104.         
  105.     ResType
  106.         CaptureFileCreator;        // Creator signature for session capture files
  107.         
  108.     Boolean
  109.         WindowsDontGoAway,        // Connection's windows remain open after connection close
  110.         StaggerWindows,            // Stagger connection windows
  111.         CommandKeys,            // Use command key shortcuts for menus
  112.         RemapTilde,                // Remap “~” to escape
  113.         BlinkCursor;            // Blink the cursor
  114.         
  115.     short
  116.         padding[100];            // Memory is getting cheap too....
  117. }    ApplicationPrefs;
  118. #define    APPLICATIONPREFS_RESTYPE    'PrEf'
  119. #define    APPLICATIONPREFS_ID            1991
  120. #define    APPLICATIONPREFS_APPID        1990
  121.  
  122. extern    ApplicationPrefs    *gApplicationPrefs;
  123.  
  124. // Only one instance of this structure.  Resource FTPs
  125. typedef    struct {
  126.     short
  127.         version;                // Version of this resource
  128.  
  129.     short
  130.         ServerState;            // 0 = off, 1 = no protection, 2 = password protection
  131.         
  132.     OSType
  133.         BinaryCreator,            // Default creator for files transferred in binary mode
  134.         BinaryType,                // Default type for files transferred in binary mode
  135.         TextCreator;            // Default creator for file transferred in ASCII mode
  136.         
  137.     Boolean
  138.         ShowFTPlog,                // FTP log defaults to visible
  139.         DNSlookupconnections,    // Translate IP of connecting hosts to DNS names for log
  140.         UseMacBinaryII,            // Allow MacBinary II
  141.         unused1,                // Unused
  142.         unused2,                // Unused
  143.         ResetMacBinary,            // Reset MacBinary after each transfer
  144.         DoISOtranslation;        // Use ISO translation
  145.  
  146.     short
  147.         padding[100];
  148. }    FTPServerPrefs;
  149. #define    FTPSERVERPREFS_RESTYPE    'FTPs'
  150. #define    FTPSERVERPREFS_ID         1991
  151. #define    FTPSERVERPREFS_APPID     1990
  152.  
  153. extern    FTPServerPrefs    *gFTPServerPrefs;
  154.  
  155. // Username is the resource name.  Resource type FTPu
  156. typedef    struct {
  157.     short
  158.         version;                // Version of this resource
  159.     Str32
  160.         EncryptedPassword,        // Encrypted form of user's password
  161.         DefaultDirVolName;        // Name of the volume containing user's default directory
  162.         
  163.     long
  164.         DefaultDirDirID;        // DirID of the user's default directory
  165.  
  166.     Boolean
  167.         UserCanCWD;                // User is allowed to change directories
  168.         
  169.     short
  170.         padding[20];            // Some padding for the future
  171. }    FTPUser;
  172. #define    FTPUSER                    'FTPu'
  173.  
  174. // >>>> FTP Client Prefs? <<<    
  175.  
  176. typedef    struct {
  177.     TerminalPrefs
  178.         **terminal;
  179.     SessionPrefs
  180.         **session;
  181.     Str255
  182.         WindowName;
  183.     short
  184.         ftpstate;
  185.     Rect
  186.         WindowLocation;    
  187. }    ConnInitParams;
  188.